﻿@{
    ViewBag.Title = "No Success";
    Layout = "~/Areas/Admin/Views/Shared/_LayoutAdmin.cshtml";
}

@section Head
{
    <script src="@Url.Content("~/Scripts/Home/DongHoNguoc.js")" type="text/javascript"></script>
    <style type="text/css">
        #Success
        {
            margin: auto;
            margin-top: 30px;
            width: 240px;
            background: #e63535;
            padding: 20px 40px;
            border: 5px solid #dfdfdf;
            color:#fff;
        }
        .title, #ShowClock
        {
            font-size: 28px;
            float: left;
            margin: 5px;
             text-align:center;
        }
        #Success ul
        {
			padding:0px 0px 0px 20px;
        }
        #Success ul li
        {
            list-style: none;
			list-style-image: url(@Url.Content("~/Content/Home/images/bullet.gif"));
        }
        #Success ul li a
        {
            line-height: 22px;
            font-size: 14px;
            color: #f1f1f1;
            text-decoration: none;
        }
        #Success ul li a:hover
        {
            color: #f90;
            text-decoration: underline;
        }
    </style>
    <script type="text/javascript">
     $(document).ready(function () {
            setTimeout(function () { redirectURL() }, 8000);
        });      
        function CreateUrlRedirect() {     
           //demo
            var tmp = 'https://www.google.com/search?hl=en';
            return encodeURIComponent(tmp);
        }
        function redirectURL() {
            var url = Solution.Core.getParameterByName('url')
            Solution.Core.Redirect(url);
        }
    </script>
}
<div id="Success">
    <div class="title">
        Error!
    </div>
    <div id="ShowClock">
    </div>
    <div>
        <img src="@Url.Content("~/Content/Home/loading/loading11.gif")" alt="" onload='DongHoNguoc("00", ":8", "ShowClock")' /></div>
    <ul>
        <li><a href="@Url.Action("index", "admin")">Click to return admin </a></li>
        <li><a href="@Url.Action("index", "Home", new { area = "" })">Click to return home</a></li>
        <li><a href="#" onclick="redirectURL();">Auto return default</a></li>
    </ul>
</div>
